﻿using BW.WMS.ApiReulst;
using BW.WMS.WareHouseAllot.Dto.Goods;
using BW.WMS.WareHouseAllot.Dto.GoodsType;
using BW.WMS.WareHouseAllot.Parameter.Input.Goods;
using BW.WMS.WareHouseAllot.Parameter.Input.GoodsType;
using BW.WMS.WareHouseAllot.Parameter.Output.Goods;
using BW.WMS.WareHouseAllot.Parameter.Output.GoodsType;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;

namespace BW.WMS.WareHouseAllot.Interface.Goods
{
    /// <summary>
    /// 货品信息接口层
    /// </summary>
    public interface IGoodsService
    {
        /// <summary>
        /// 添加货品信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<GoodsDto> AddGoods(AddGoodsInput input);

        /// <summary>
        /// 获取货品信息数据
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<PagedResultDto<GoodsOutput>> GetGoodsList(GoodsQuertInput input);

        /// <summary>
        /// 根据货品id获取货品信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<GoodsOutput> GetGoodsValue(Guid id);

        /// <summary>
        /// 修改货品信息
        /// </summary>
        /// <param name="id"></param>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<GoodsDto> UpdateGoods(Guid id, UpdateGoodsInput input);

        /// <summary>
        /// 删除货品信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeleteGoods(Guid id);
    }
}
